package com.hnhp.controller;

import com.hnhp.exception.BizException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//API接口 给前端进行分配url路径的
@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() throws InterruptedException {
//        Thread.sleep(2000);
//        int a =1/0;
//        if (1==1){
//            throw new BizException(886,"报错了 拜拜了您内");
//        }
        return "hello springBoot";
    }

}
